﻿using System.Data;
using System.Data.SqlClient;

namespace DataAccess
{
    public class DAWorkCategory
    {
        public DAWorkCategory()
        {

        }

        public DataTable GetWork(string parentId, string companyid)
        {
            string strCommandText = "selGetWorkCategory"+ companyid;
            SqlParameter[] paraLocal = new SqlParameter[1];
            paraLocal[0] = new SqlParameter("@ParentId", parentId);
            return SqlHelper.ExecuteData(CommandType.StoredProcedure, strCommandText, paraLocal);
        }
    }
}
